package cn.com.twoke.easyproject.modules.auth.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;


@Getter
public class UserLoginEvent extends ApplicationEvent {
    /**
     * 登录用户ID
     */
    private final long loginUserId;

    private final String ipAddress;

    private final String ipRegion;

    public UserLoginEvent(Object source, long loginUserId, String ipAddress, String ipRegion) {
        super(source);
        this.loginUserId = loginUserId;
        this.ipAddress = ipAddress;
        this.ipRegion = ipRegion;
    }

}
